<?php
namespace app\model;


use Illuminate\Database\Eloquent\Relations\BelongsTo;
use const support\CORRECT;

class MembersRelationModel extends BaseModel{

    protected $table = 'rl_members_relations';

    //关联用户组
    public function members(): BelongsTo
    {
        return $this->belongsTo('app\model\MemberModel','member_id','id')
            ->where('status',CORRECT);
    }

}